package com.lzx.es.service;

import com.lzx.common.utils.R;
import com.lzx.es.entity.articleVO.RequestParams;
import com.lzx.es.entity.userVO.QueryUser;

/**
 * @author 程序员星星
 * @date 2023/2/9
 * @Description
 */
public interface ESArticleService {
    //全文检索
    R searchArticle(RequestParams requestParams);

    //将数据重新导入es
    R saveArticleList();

    //自动补全
    R getSuggestion(String key);

    //添加文章
    R addArticle(Long articleId);

    //删除文章
    R deleteArticle(Long articleId);

    //修改文章
    R editArticle(Long articleId);

    //查询文章
    R getArticle(Long articleId);

    //用户修改头像或昵称，批量更新数据
    R updateNicknameOrAvatar(QueryUser queryUser);
}
